package TemplateCode;

public class HandlerUpper extends Handler{
    @Override
    public String handleRequest(String textMessage) {
        System.out.println("字母转大写");
        String result;
        result=textMessage.toUpperCase();
        if(nextHandler!=null){
            result = nextHandler.handleRequest(result);
        }
        return result;

    }
}
